<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/resource/UserPwoer.tld" prefix="p"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("fnId", request.getAttribute("fnId"));
	pageContext.setAttribute("userPwoer", request.getSession().getAttribute("userPwoer"));
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="../images/favicon.ico">
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>
<link rel="stylesheet" href="${path }/resource/css/answer-question-list.css">
</head>
<body class="gray-bg">
	
	<div class="ibox-content wrap">
		<div class="inner">
			<div class="con">
				<form class="form-horizontal" id="dataform"
					onsubmit="javascript:return false;">
					<div class="question">
						<h4>1、Matrix框架有几种账号类型</h4>
						<div class="answer">
							<label><input name="answer1" type="radio" value="a" />A、1种 </label>
							<label><input name="answer1" type="radio" value="b" />B、2种 </label>
							<label><input name="answer1" type="radio" value="c" />C、3种 </label>
							<label><input name="answer1" type="radio" value="d" />D、4种</label>
						</div>
					</div>
					<div class="question">
						<h4>2、下列哪个表不属于matrix框架的基本表</h4>
						<div class="answer">
							<label><input name="answer2" type="radio" value="a" />A、company</label>
							<label><input name="answer2" type="radio" value="b" />B、 users</label>
							<label><input name="answer2" type="radio" value="c" />C、 btn</label>
							<label><input name="answer2" type="radio" value="d" />D、matrix </label>
						</div>
					</div>
					<div class="question">
						<h4>3、super用户用于管理什么？</h4>
						<div class="answer">
							<label><input name="answer3" type="radio" value="a" />A、管理功能和按钮</label>
							<label><input name="answer3" type="radio" value="b" />B、 管理用户权限</label>
							<label><input name="answer3" type="radio" value="c" />C、 管理公司权限</label>
							<label><input name="answer3" type="radio" value="d" />D、管理菜单权限 </label>
						</div>
					</div>
					<div class="form-group ">
						<div class="col-sm-12 text-center">
							<a href="javascript:;" onclick="myForm.submit()"
								class="btn btn-success radius">完成答题</a>&nbsp;&nbsp;&nbsp;&nbsp;
							<button onclick="MTools.closeForm()"
								class="btn btn-danger radius" type="button">取消</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	
	<script type="text/javascript">
	var myForm = MForm.initForm({
		invokeUrl : "${path}/admin/taskExecution/comparisonQuestion4Answer",
		afterSubmit:function(loj){
			if(loj.getValue("info")=='视频学习任务2问题全部回答正确'){
				parent.location.reload();
			}
		}
	});	
	</script>
</body>
</html>
